/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * introduction:
 * @file motor.h
 * @author hellokun（https://space.bilibili.com/475950146）
 * @brief 电机驱动
 * @version 0.1
 * @date 2022-03-16
 * @copyright Copyright (c) 2022
 */
#pragma once
#ifndef __MORTOR_H__
#define __MORTOR_H__
#define IN1 5
#define IN2 6
#define IN3 7
#define IN4 8 //IN1-IN4 motor_driver control IO

void Motor_Init();
void Forward(unsigned int circle_time);
void Backward(unsigned int circle_time);
void Turn_left(unsigned int circle_time);
void Turn_right(unsigned int circle_time);
void Circle(unsigned int circle_time);
void Stop_motor();

#endif